home *** CD-ROM | disk | FTP | other *** search
/ Interactive Web Graphics with Shout 3D / Interactive Web Graphics With Shout 3D.iso / pc / Shout3Ddemo / Shout3d_runtime / codebase / models / animTests / bezier_scale_box.s3d < prev    next >
Text File  |  2000-06-17  |  1KB  |  57 lines

  1. Background {
  2.     color 0 0 0
  3. }
  4. DEF world-TIMER TimeSensor {
  5.     loop TRUE
  6.     cycleInterval 3.333
  7. }
  8. DEF Box01 Transform {
  9.     translation -0.3824 0.02415 -0.6492
  10.     children [
  11.         Shape {
  12.             appearance [
  13.                 MultiAppearance {
  14.                     material Material {
  15.                         diffuseColor 0.6039 0.6039 0.898
  16.                     }
  17.                 }
  18.             ]
  19.             geometry MultiMesh {
  20.                 coord DEF Box01-COORD Coordinate {
  21.                     point [
  22.                         -15 0 15 15 0 15 -15 0 -15 15 0 -15 -15 30 15 15 30 15 -15 30 -15 15 30 -15
  23.                     ]
  24.                 }
  25.                 coordIndex [
  26.                     0 2 3 -1 3 1 0 -1 4 5 7 -1 7 6 4 -1 0 1 5 -1 5 4 0 -1 1 3 7 -1 7 5 1 -1 3 2 6 -1 6 7 3 -1
  27.                     2 0 4 -1 4 6 2 -1
  28.                 ]
  29.                 smoothingIndex [
  30.                     2 -1 2 -1 3 -1 3 -1 4 -1 4 -1 5 -1 5 -1 6 -1 6 -1 7 -1 7 -1
  31.                 ]
  32.                 appearanceIndex [
  33.                     1 1 0 0 4 4 3 3 5 5 2 2
  34.                 ]
  35.                 textureMappings [
  36.                 ]
  37.             }
  38.         }
  39.         DEF Box01-BEZSCALE-INTERP BezierVecInterpolator {
  40.             key [
  41.                 0 0.5 1
  42.             ]
  43.             keyValue [
  44.                 1 1 -1 0.5349 0.5349 -0.5349 0.3021 0.3021 -0.3021 0.3021 0.3021 -0.3021 0.3021 0.3021 -0.3021 0.302 0.302 -0.302 0.5348 0.5348 -0.5348 0.9998 0.9998 -0.9998
  45.             ]
  46.         }
  47.         ROUTE world-TIMER.fraction_changed TO Box01-BEZSCALE-INTERP.set_fraction
  48.         ROUTE Box01-BEZSCALE-INTERP.value_changed TO Box01.set_scale
  49.     ]
  50. }
  51. DEF Camera01 Viewpoint{
  52.     position -0.9421 6.743 126
  53.     orientation 0 0 0 0
  54.     fieldOfView 0.6024
  55.     description "Camera01"
  56. }
  57.